package com.ricchieri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Table(name="documenttype")
public class DocumentType extends BaseEntity {

	private static final long serialVersionUID = 6060708418479383984L;
	
	@Column(name="description", nullable=false, length=50)	
	private String description;
	
	@Column(name="descriptionKey", nullable=false, length=2)	
	private String descriptionKey;
	
	public DocumentType(){
	}
	
	public DocumentType(int id, Integer optlock, Boolean active, String description) {
		super(id, optlock, active);
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescriptionKey() {
		return descriptionKey;
	}

	public void setDescriptionKey(String key) {
		this.descriptionKey = key;
	}
}
